package com.example.spring.jpa.specification;


import com.example.spring.jpa.ast.AstExpression;
import com.example.spring.jpa.ast.AstNode;

/**
 * @author: orange
 * @create: 2023-07-23 18:28
 * @description:
 */
public class Calculation {
    public static AstNode calc(String exp) throws Exception {
        AstExpression expression = new AstExpression(exp);
        return expression.parse();
    }
}
